export function setClientId(clientId) {
  return {
	type: 'SET_CLIENT_ID',
	clientId
  };
}

export function setConnectionState(state, connected) {
  return {
	type: 'SET_CONNECTION_STATE',
	state,
	connected
  };
}

export function setState(state) {
  return {
	type: 'SET_STATE',
	state
  };
}

export function vote(entry) {
  return {
	meta: {remote: true},
	type: 'VOTE',
	entry
  };
}

export function next() {
	return {
		meta: {
			remote: true
		},
		type: 'NEXT'
	};
}

export function setCurFolderId(folderId){
  	return {  		
  		type: "SET_CUR_FOLDER_ID",
  		folderId
  	}
}

export function setFolderChildren(folderId, folderChildren) {
	return {
		type: "SET_FOLDER_CHILDREN",
		folderId,
		folderChildren
	}
};

export function restart() {
  return {
	meta: {remote: true},
	type: 'RESTART'
  };
}
